LastIndexOf Method

Wintellect PowerCollections

Collapse imageExpand ImageCollapseAll imageExpandAll imageDropDown imageDropDownHover imageCopy imageCopyHover image
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Get the last index of the given item in the view. The smallest item in the view has index 0, the next smallest item has index 1, and the largest item has index Count-1.

Namespace: Wintellect.PowerCollections
Assembly:  PowerCollections (in PowerCollections.dll)

Syntax

C#
public int LastIndexOf(
	T item
)
Visual Basic (Declaration)
Public Function LastIndexOf ( _
	item As T _
) As Integer
Visual C++
public:
int LastIndexOf (
	T item
)

Parameters

item
T
The item to get the index of.

Return Value

The index of the last item in the view equal to item, or -1 if the item is not present in the view.

Remarks

Finding the index takes time O(log N), which N is the number of items in the set.

See Also